<?php
require_once 'models/TMSPublicableItemModel.inc';

class TMSGlossaryModel extends TMSPublicableItemModel {
/**
 * @var IItemPublisher[]
 */
	protected $_ioc_publisher_ = array();	
	
	public function GetGlossaryItem($class, $id){
		if ($id){
			$d = new $class();
			$d->Id = $id;
			$obj = $this->Adapter->Load($d);
			if (!is_null($obj))
				return new TCandyItem($obj,$this);
		}
		return null;	
	}
}